package com.kinyx.framework.db.sentence.res.demo.select;

import org.junit.Assert;

import com.kinyx.framework.db.configs.DBConfigsHelper;
import com.kinyx.framework.db.sentence.res.KSELECT;
import com.kinyx.framework.db.sentence.res.KSQLBuilder;

public abstract class SELECT__SUPER {

	protected abstract boolean isSQL();

	protected KSELECT select = KSQLBuilder.select(this.isSQL());

	protected void test(final KSELECT select, final String expectedSentence, final String expectedString) {
		Assert.assertEquals(expectedSentence, select.getSentence(DBConfigsHelper.getDBConfigs(null)));
		Assert.assertEquals(expectedString, select.toString());
	}

}
